function cs() {
    current_dir=$(pwd)
    while true; do
        echo $current_dir
        if [[ $current_dir == /home ]]; then
            return
        fi

        if [[ -d $current_dir/.repo ]]; then
            cd $current_dir
            return
        else
            current_dir=${current_dir%/*}
        fi
    done
}


function ct() {
    current_dir=$(pwd)
    while true; do
        echo $current_dir
        if [[ $current_dir == /home ]]; then
            return
        fi

        if [[ -d $current_dir/.git ]]; then
            cd $current_dir
            return
        else
            current_dir=${current_dir%/*}
        fi
    done
}